import request from '@/utils/request'
import { praseStrEmpty } from '@/utils/ruoyi'

// 查询列表
export function listAppInfo(query) {
  return request({
    url: '/system/apply/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getAppInfo(id) {
  return request({
    url: '/system/apply/' + praseStrEmpty(id),
    method: 'get'
  })
}

// 查询认证列表详情
export function getAppAuthList(query) {
  return request({
    url: '/monitor/logininfor/list',
    method: 'get',
    params: query
  })
}

// 状态修改
export function changeAppStatus(appId, status) {
  const data = {
    id: appId,
    applyStatus: status
  }
  return request({
    url: '/system/apply',
    method: 'put',
    data: data
  })
}


